WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct D

Total Complexity 150
Dependencies 14
Dependents 1
Total lines 1,197
Lines of code 540
Logical lines of code 310
Comment lines 432
Methods 23
Properties 0

Methods 23

Method Rating Maintainability Complexity Lines of code
process_payment()
A
43 15 43
do_credit_card_transaction()
A
42 13 47
handle_multi_payment_methods()
A
43 10 44
maybe_tokenize()
A
52 11 23
validate_credit_card_expiration_date()
A
54 10 19
validate_fields()
A
51 9 24
update_transaction_payment_method()
A
47 8 36
handle_single_payment_method()
A
57 9 15
do_gift_card_transaction()
A
44 7 41
do_add_payment_method_transaction()
A
46 7 39
validate_credit_card_fields()
S
56 7 16
do_transaction()
S
50 6 28
get_order()
S
52 6 22
validate_credit_card_account_number()
S
53 6 22
validate_csc()
S
57 6 17
get_order_for_add_payment_method()
S
45 4 42
add_add_payment_method_customer_data()
S
59 5 13
add_payment_method()
S
54 4 20
add_add_payment_method_transaction_data()
S
58 3 14
is_direct_gateway()
S
82 1 3
verify_order_total()
S
70 1 6
get_add_payment_method_payment_gateway_transaction_data()
S
82 1 3
transaction_forced()
S
82 1 3